import SimulateLayout from "@/layouts1/SimulateLayout.vue";


export default [
  // 模拟登陆路由
  {
    path: '/simulate/sys',
    component: SimulateLayout,
    meta: { title: '系统管理' },
    children: [
      {
        path: '/simulate/sys/user',
        component: () => import('@/views/sys/user/index.vue'),
        meta: { title: '用户管理', menuCode: 'user' },
      },
      {
        path: '/simulate/sys/role',
        component: () => import('@/views/sys/role/index.vue'),
        meta: { title: '角色管理', menuCode: 'role' },
      },
      {
        path: '/simulate/sys/menu',
        component: () => import('@/views/sys/menu/index.vue'),
        meta: { title: '菜单管理', menuCode: 'menu' },
      },
      {
        path: '/simulate/sys/login',
        component: () => import('@/views/sys/user/index.vue'),
        meta: { title: '登录日志', },
      },
      {
        path: '/simulate/sys/option',
        component: () => import('@/views/sys/user/index.vue'),
        meta: { title: '操作日志', },
      },
    ]
  },
  {

    path: '/simulate/my',
    component: SimulateLayout,
    meta: { title: '个人信息' },
    children: [
      {
        path: '/simulate/my/profile',
        component: () => import('@/views/my/profile/index.vue'),
        meta: { title: '我的资料' },
      }
    ]
  },
  {
    path: '/simulate',
    redirect: '/simulate/workSpace'
  },
  {
    path: '/simulate/workspace',
    redirect: '/simulate/workspace/workbench',
    component: SimulateLayout,
    meta: { title: '工作空间' },
    children: [
      {
        path: '/simulate/workspace/workbench',
        component: () => import('../../views/workSpace/workbench/index.vue'),
        meta: { title: '工作台', closable: false },
      },
      {
        path: '/simulate/workspace/console',
        component: () => import('../../views/workSpace/console/index.vue'),
        meta: { title: '控制台', },
      },
      {
        path: '/simulate/workspace/analysis',
        component: () => import('../../views/workSpace/analysis/index.vue'),
        meta: { title: '分析页', },
      }
    ]
  },
  {
    path: '/simulate/job',
    component: SimulateLayout,
    meta: { title: '调度中心' },
    children: [
      {
        path: '/simulate/job/localJob',
        component: () => import('@/views/job/local/index.vue'),
        meta: { title: '本地任务', menuCode: 'localJob' },
      },
    ]
  },
  {
    path: '/simulate/error',
    component: SimulateLayout,
    meta: { title: '错误页面' },
    children: [
      {
        path: '/simulate/error/401',
        component: () => import('../../views/error/401.vue'),
        meta: { title: '401' },
      },
      {
        path: '/simulate/error/403',
        component: () => import('../../views/error/403.vue'),
        meta: { title: '403' },
      },
      {
        path: '/simulate/error/404',
        component: () => import('../../views/error/404.vue'),
        meta: { title: '404' },
      },
      {
        path: '/simulate/error/500',
        component: () => import('../../views/error/500.vue'),
        meta: { title: '500' },
      }
    ]
  },

]
